//
//  User.swift
//  SwiftLibrary
//
//  Created by wumin on 16/1/1.
//  Copyright © 2016年 taurusxi. All rights reserved.
//

class User: TaurusDBModel {
  
  var name:String?
  
  var addr:String?
  
  var age:Int
  
  var height:Int
  
  var flag:Bool
  
  var size:Double
  
  var str:NSString?
  
  var interger:NSInteger
  
  required init(){

    self.age = UNDIFINE_INTERGER_VALUE
    self.height = UNDIFINE_INTERGER_VALUE
    self.flag = false
    self.size = Double(UNDIFINE_INTERGER_VALUE)
    self.interger = UNDIFINE_INTERGER_VALUE
    
    super.init()
  }

  
  override class func getPrimarayKey() -> String {
    return "name"
  }
  
  // 做版本迁移
  override class func getVersion() -> Int{
    return 1
  }
  

}
